package Dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import utl.Jdbc;

public class CommentDao {
	Jdbc jdbc=new Jdbc();
	public List<Comment> cquery() throws SQLException{
		List<Comment> comments=new ArrayList<>();
		comments=jdbc.cqueryAll();
		return comments;
	}
	public void cinsert(String name,String comment) throws SQLException {
		jdbc.cinsert(name, comment);
	}
	public List<Comment> hquery() throws SQLException{
		List<Comment> comments=new ArrayList<>();
		comments=jdbc.hqueryAll();
		return comments;
	}
	public void hinsert(String name,String comment) throws SQLException {
		jdbc.hinsert(name, comment);
	}
	public List<Comment> bquery() throws SQLException{
		List<Comment> comments=new ArrayList<>();
		comments=jdbc.bqueryAll();
		return comments;
	}
	public void binsert(String name,String comment) throws SQLException {
		jdbc.binsert(name, comment);
	}
	public List<Comment> squery() throws SQLException{
		List<Comment> comments=new ArrayList<>();
		comments=jdbc.squeryAll();
		return comments;
	}
	public void sinsert(String name,String comment) throws SQLException {
		jdbc.sinsert(name, comment);
	}
}
